<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/vue@2.7.14/dist/vue.min.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
<a href="page/test/hello">hello</a>
<form action="page/test/hello" method="post">
    <button>post 提交至 hello</button>
</form>
<hr>

<a href="page/test/hello1">hello1</a>
<form action="page/test/hello1" method="post">
    <button>post 提交至 hello1</button>
</form>
<hr>

<a href="page/test/add?a=1&b=2">add</a>
<a href="page/test/add?a=1">add1</a>
<hr>

<a href="http://127.0.0.1:8080/springmvc_demo_war_exploded/page/test/head">head 127.0.0.1</a>
<a href="http://localhost:8080/springmvc_demo_war_exploded/page/test/head">head localhost</a>
<hr>

<form action="page/test/body" method="post">
    <input type="text" name="name">
    <input type="number" name="age">
    <input type="file" name="image" accept="image/*">
    <button>post 提交至 body 表单提交方式</button>
</form>

<form action="page/test/body" method="post" enctype="multipart/form-data">
    <input type="text" name="name">
    <input type="number" name="age">
    <input type="file" name="image" accept="image/*">
    <button>post 提交至 body 文件上传方式</button>
</form>

<form action="page/test/hello2">
    <input type="text" name="name">
    <button>get 提交至 hello2</button>
</form>
<hr>

<form action="page/test/user">
    <input type="text" name="name">
    <input type="number" name="age" max="140">
    <input type="text" name="alias">
    <button>get 提交至 user</button>
</form>

<a href="page/test/servlet">servlet 相关对象</a>

<h3>复杂的对象数据提交</h3>
<form action="page/test/user" method="post">
    <input type="text" name="name">
    <input type="number" name="age" max="140">
    <input type="text" name="alias">
    <hr>
    <input type="text" name="father.name">
    <input type="number" name="father.age" max="140">
    <input type="text" name="father.alias">
    <hr>
    <input type="text" name="friends[0].name">
    <input type="number" name="friends[0].age" max="140">
    <input type="text" name="friends[0].alias">
    <br>
    <input type="text" name="friends[1].name">
    <input type="number" name="friends[1].age" max="140">
    <input type="text" name="friends[1].alias">
    <button>post 提交至 user</button>
</form>

</body>
</html>